# coding=utf-8
import sentry_sdk
from social.rdm import redis_instance


def check_request_is_valid(request, report=True):

    return True
    # is_valid = bool(request.is_valid)
    # if not is_valid and report:
    #     user_id = request.user.id
    #     user_nickname = request.user.nickname if user_id else ''
    #     is_reported = False
    #     if user_id:
    #         r = redis_instance()
    #         is_reported = r.hget('rubbish_requests', user_id)
    #         r.hset('rubbish_requests', user_id, '1')
    #
    #     if not is_reported:
    #         with sentry_sdk.push_scope() as scope:
    #             scope.user = {'id': user_id}
    #             sentry_sdk.capture_message(f"MaybeRubbishRequest:{user_nickname},{user_id}")
    #
    # return is_valid
